<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@page isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Blood Pressure Journal</title>
    <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
</head>
<body>
    <c:if test="${empty(param.googleEmail)}">
        <p>Now, please click on the link below to log into Google and link this iPhone app to your Google Health account. You might be asked to login twice (first for Google and second for Google Health).</p>
        <a href="${param.loginUrl}">Link this iPhone to your Google account</a>
    </c:if>
    <c:if test="${!empty(param.googleEmail)}">
        <p>It appears that you have already linked your iPhone to Google account ${param.googleEmail}. You can unlink and then re-link it with another Google account.</p>
        <a href="${initParam['AppUrl']}/google/unlink?appName=${param.appName}&username=${param.username}&nextUrl=${initParam['AppUrl']}/bp/unlink_done.jsp">Un-link this iPhone from Google account</a>
    </c:if>
    <p><a href="toc.jsp">Privacy Policy</a></p>
</body>
</html>